Skip to main content

openField

Type

message

Summary

Sent to an unlocked field when you click or select text in that field.

Syntax

openField

Description

Handle the openField message if you want to do something when the user enters a field.

The openField message is sent to buttons whose menuMode is "comboBox", since the type-in box in a combo box behaves like a field.

The openField message is not sent to locked fields. When a locked field becomes active (focused)(glossary) or when text in it is selected by a handler, the focusIn message is sent to it.

Examples

on openField -- when clicking in the field, select all its text
select text of the target
end openField

command: select

glossary: select, handler, lock, message, unlock, active control, combo box

keyword: selection, field

message: focusIn, exitField, closeField

object: field, button

property: menuMode

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?